const Mock = require('mockjs')

module.exports = Mock.mock({
  "list|10": [{
    "url": "@image(100x100, @color, @name)",
    "title": "@ctitle",
    "price|100-10000": 1,
    "id": "@id",
    "banners|3-6": ["@image(100x100, @color, @name)"],
    "desc": '@cword(10,20)'
  }],
  "tabs|5": [{
    "title|+1": ["手机", "数码", "家电", "食品", "生活"],
    "id": "@id",
    "children|10-20": [{
      "url": "@image(100x100, @color, @name)",
      "title": "@ctitle",
      "price|100-10000": 1,
      "id": "@id",
      "banners|3-6": ["@image(100x100, @color, @name)"],
      "desc": '@cword(10,20)'
    }]
  }]
})